package com.vip.sys.modular.resources.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.util.List;

/**
 * @author ASUS
 * @Date 2025/5/5 13:24
 * @Descripition
 */
@Schema(description = "资源授权实体类")
@Data
@Builder
public class ResourcesGrantVo {
    @Schema(description = "资源id")
    private String id;
    @Schema(description = "资源名称")
    private String name;
    @Schema(description = "资源菜单")
    public List<ResourcesMenu> menu;
    @Data
    @Builder
   public static class ResourcesMenu{
        @Schema(description = "资源id")
        private String id;
        @Schema(description = "资源名称")
        private String title;
        @Schema(description = "资源父级id")
        private String parentId;
        @Schema(description = "资源父级名称")
        private String parentTitle;
        @Schema(description = "资源按钮")
        public List<ResourcesButton> button;
    }
    @Data
    @Builder
    public static class ResourcesButton{
        @Schema(description = "按钮id")
        private String id;
        @Schema(description = "按钮名称")
        private String title;
    }
}
